using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ProjectileMeleeCircle:ProjectileMelee {

	bool faceLeft;
	public float rotateSpeed;
	public bool isCCW;

	protected override void Init() {
		base.Init();
		if(((Angle)transform.rotation).IfBetween(Angle.up,Angle.down)) faceLeft=true;
		else faceLeft=false;
		isCCW=false;
	}

	protected override void Update() {
		base.Update();
		bool reverse = faceLeft^isCCW;
		spriteRenderer.flipY=!reverse;
		forward*=(Angle)((reverse ? -1 : 1)*rotateSpeed*Time.deltaTime);
	}

}
